import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//引入全局样式
import './assets/css/gloable.css'

//引入axios，解决跨域问题
import axios from "axios"
//挂载axios
Vue.prototype.$http=axios
//设置访问跟路径
axios.defaults.baseURL="http://localhost:8081/"

//使前后端的sessionId保持一致
axios.defaults.withCredentials = true

//jquery需要再每次使用ajax时增加如下配置
xhrFields:{
    withCredentials:true
}

//引入iconfont
import './assets/book-img/iconfont.css'



Vue.config.productionTip = false
Vue.use(ElementUI);
new Vue({
    router,
    render: h => h(App)
}).$mount('#app')
